<%--
  User: Shengzhao Li
--%>
<%@ attribute name="currentSprint" required="true"
              type="com.andaily.domain.dto.developer.SprintDto" %>
<%@ attribute name="task" required="true"
              type="com.andaily.domain.dto.developer.SprintTaskDto" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@tag pageEncoding="UTF-8" %>

<c:if test="${not currentSprint.finished}">
    <li><a tabindex="-1" href="${contextPath}/developer/task_action/finish/${task.guid}" class="finishTask"
           load-url="${contextPath}/developer/task_action/finishform/${task.guid}"
           modal-title="Finish task #${task.number}"><i
            class="icon-thumbs-up"></i> Finish it</a></li>
    <li><a tabindex="-1" href="${contextPath}/developer/task_action/revert/${task.guid}" class="confirm"
           confirm-content="Are you sure revert the task to Created ?" confirm-title="Confirm revert"><i
            class="icon-share-alt"></i> Revert</a>
    </li>
    <li><a tabindex="-1" href="${contextPath}/developer/task_action/cancel/${task.guid}" class="confirm"
           confirm-content="Are you sure cancel the task ?" confirm-title="Confirm cancel"><i
            class="icon-remove-sign"></i> Cancel</a></li>
</c:if>